<?php

namespace App\Http\Controllers\Web;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Jobads;
use App\Model\Officer;
class OfficerController extends Controller
{
    //
    public function getOfficer(){
        $officers = Officer::orderBy('date','desc')->paginate(10,['*'],'uPage',1);
        $jobs = Jobads::orderBy('date','desc')->paginate(10,['*'],'uPage',1);
        return view('officer',[
            'currentNav' => 'officer',
            'officers' => $officers,
            'jobs' => $jobs
        ]);
    }
}
